import request from '@/utils/request';

/**
 * 通用Post请求方法
 * @param url
 * @param method
 * @param data
 * @returns {*}
 */
export const requestPost = (url: string, data: any) => {
  return request({
    url: url,
    method: 'post',
    data: data
  });
};

export const requestDelete = (url: string, data: any) => {
  return request({
    url: url,
    method: 'delete',
    params: data
  });
};





